package com.starry.designPatterns.creatation.factory.simplefactory;

public class MainTest {

    public static void main(String[] args) {
        WuLinSimpleFactory factory = new WuLinSimpleFactory();
        AbstractCar van = factory.newCar("van");
        AbstractCar mini = factory.newCar("mini");
        System.out.println(van);
        System.out.println(mini);
        van.run();
        mini.run();



    }
}
